import request from '@/utils/request'

// 查询美团出库单主列表
export function listWhout(query) {
  return request({
    url: '/mt/whout/list',
    method: 'get',
    params: query
  })
}

// 查询美团出库单主详细
export function getWhout(id) {
  return request({
    url: '/mt/whout/' + id,
    method: 'get'
  })
}

// 新增美团出库单主
export function addWhout(data) {
  return request({
    url: '/mt/whout',
    method: 'post',
    data: data
  })
}

// 修改美团出库单主
export function updateWhout(data) {
  return request({
    url: '/mt/whout',
    method: 'put',
    data: data
  })
}

// 删除美团出库单主
export function delWhout(id) {
  return request({
    url: '/mt/whout/' + id,
    method: 'delete'
  })
}

// 导出美团出库单主
export function exportWhout(query) {
  return request({
    url: '/mt/whout/export',
    method: 'get',
    params: query
  })
}
